import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from '@/store'

// 引入api
import * as api from '@/api'
//放在vue实例原型上
Vue.prototype.$API = api;

// 局部引入element-ui
import {Message} from 'element-ui'
Vue.prototype.$message = Message;

//全局注册TypeNav，因为很多组件用到了TypeNav
import TypeNav from '@/components/TypeNav'
Vue.component(TypeNav.name,TypeNav)

//关闭Vue生产提示
Vue.config.productionTip = false

new Vue({
  el:"#app",
  render: h => h(App),
  router,
  store
})
